import { service } from "./Request";

const systemApi = {
    // 检查并处理超时车辆
    checkTimeoutCars() {
        return service({
            url: "/admin/system/check-cars",
            method: "post"
        })
    },
    // 获取所有计时记录
    getTimerRecords(params) {
        return service({
            url: "/timer-records",
            method: "get",
            params
        })
    },
    // 删除计时记录
    deleteTimerRecord(id) {
        return service({
            url: `/timer-records/${id}`,
            method: "delete"
        })
    }
};

export default systemApi; 